package tcln.sors.model.core.dom;

import java.io.Serializable;

/**
 * Interface for an entity.
 * 
 * @param <ID>
 *            Identity type.
 * @author Truong Chau Lien Ngoc (lienngoc@gmail.com)
 */
public interface Entity<ID extends Serializable> {

    /**
     * Returns unique ID of this entity.
     * 
     * @return
     */
    ID getId();

    /**
     * Checks if this entity has been persisted or not.
     * 
     * @return
     */
    boolean isPersisted();
}
